{include file="../header.html" title="图书分类列表"}

	<div id="main">
		<div id="main_title">您当前处于 
			<span class="weightFont">书籍管理</span> >> 
			<span class="softFont">图书分类列表</span>
		</div>
		<div id="main_body">
			<div class="searchBox">
				<input type="text" id="searchKey" name="searchKey" placeholder="类型号或类型名" />
				<span class="searchBtn">搜索</span>
			</div>
			<div><button class="addItemBtn">添加分类</button></div>
			{if $typeList}
			<center>
				<form id="listForm">
					<table id="typeList" cellpadding="5" cellspacing="0">
						<tr>
							<th>类型号</th>
							<th>类别名</th>
							<th>库存书籍(册)</th>
							<th class="wider">操作</th>
						</tr>
						{foreach $typeList as $type}
						<tr>
							<td>
								<a href="{$site_url}admin/books_list.php?tid={$type['typeid']}">
									{$type['typeid']}
								</a>
							</td>
							<td>
								<a href="{$site_url}admin/books_list.php?tid={$type['typeid']}">
									{$type['typename']}
								</a>
							</td>
							<td>{$type['booknums']}</td>
							<td>
								&nbsp;
								<a href="{$site_url}admin/type_detail.php?id={$type['id']}" class="editBtn">
									编辑
								</a>&nbsp;&nbsp;
								<span class="delBtn" name="{$type['id']}">删除</span>
							</td>
						</tr>
						{/foreach}
					</table>
				</form>
				<!--翻页条-->
				{if $show_pageBox}
				<div class="pageDiv">{$pageBox}</div>
				{/if}
			</center>
			{else}
			<div class="noContent">暂时没有分类</div>
			{/if}

			<!--添加分类框-->
			<div class="popBox" style="">
				<center>
				<form>
					<table cellpaddin="0" cellspacing="10">
						<thead class="thead">
							<td colspan="2">添加新分类</td>
						</thead>
						<tr>
							<th><label for="typeID">类型号:</label></th>
							<td>
								<input type="text" name="typeID" id="typeID" />
							</td>
						</tr>
						<tr>
							<th><label for="typeName">类型名:</label></th>
							<td>
								<input type="text" name="typeName" id="typeName" />
							</td>
						</tr>
					</table>
				</form>
				<div>
					<span class="submitBtn">提交</span>
					<span class="cancelBtn">取消</span>
				</div>
				</center>
			</div>
		</div>
	</div>

{include file="../footer.html"}